package org.example.order.case4;

import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;

@Slf4j
public class OrderTestBase {
	public void orderList(){
		int orderValue = 0;
		if(this.getClass().isAnnotationPresent(Order.class)){
			Order order = this.getClass().getAnnotation(Order.class);
			orderValue = order.value();
		}
		log.info("52javaee.com====>Order集合中的bean为 {} @Order注解的值为：{}",this.getClass().getSimpleName(),orderValue);
	}
}
